package com.ruoyi.service.score.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.service.score.entity.LaborScoreDetailEntity;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户评分明细表 Mapper 接口
 * </p>
 *
 * @author Zane
 * @since 2025-10-14
 */
public interface LaborScoreDetailMapper extends BaseMapper<LaborScoreDetailEntity> {

  @Select("SELECT  round(avg(score)) FROM labor_score_detail WHERE score_id = #{scoreId}")
  Integer getAvgScore(Long scoreId);
}
